home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 25 / CU Amiga Magazine's Super CD-ROM 25 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-08].iso / CUCD / Programming / ixemul / sdk / man / cat7 / hostname.0 < prev    next >
Encoding:
Text File  |  1998-06-15  |  2.5 KB  |  52 lines

  1.  
  2. HOSTNAME(7)                  UNIX Reference Manual                 HOSTNAME(7)
  3.  
  4. NNAAMMEE
  5.      hhoossttnnaammee - host name resolution description
  6.  
  7. DDEESSCCRRIIPPTTIIOONN
  8.      Hostnames are domains, where a domain is a hierarchical, dot-separated
  9.      list of subdomains; for example, the machine monet, in the Berkeley sub-
  10.      domain of the EDU subdomain of the Internet would be represented as
  11.  
  12.            monet.Berkeley.EDU
  13.  
  14.      (with no trailing dot).
  15.  
  16.      Hostnames are often used with network client and server programs, which
  17.      must generally translate the name to an address for use.  (This function
  18.      is generally performed by the library routine gethostbyname(3).)  Host-
  19.      names are resolved by the Internet name resolver in the following fash-
  20.      ion.
  21.  
  22.      If the name consists of a single component, i.e. contains no dot, and if
  23.      the environment variable ``HOSTALIASES'' is set to the name of a file,
  24.      that file is searched for any string matching the input hostname.  The
  25.      file should consist of lines made up of two white-space separated
  26.      strings, the first of which is the hostname alias, and the second of
  27.      which is the complete hostname to be substituted for that alias.  If a
  28.      case-insensitive match is found between the hostname to be resolved and
  29.      the first field of a line in the file, the substituted name is looked up
  30.      with no further processing.
  31.  
  32.      If the input name ends with a trailing dot, the trailing dot is removed,
  33.      and the remaining name is looked up with no further processing.
  34.  
  35.      If the input name does not end with a trailing dot, it is looked up by
  36.      searching through a list of domains until a match is found.  The default
  37.      search list includes first the local domain, then its parent domains with
  38.      at least 2 name components (longest first).  For example, in the domain
  39.      CS.Berkeley.EDU, the name lithium.CChem will be checked first as lithi-
  40.      um.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU.  Lithi-
  41.      um.CChem.EDU will not be tried, as the there is only one component re-
  42.      maining from the local domain.  The search path can be changed from the
  43.      default by a system-wide configuration file (see resolv.conf(5)).
  44.  
  45. SSEEEE AALLSSOO
  46.      gethostbyname(3),  resolv.conf(5),  mailaddr(7),  named(8)
  47.  
  48. HHIISSTTOORRYY
  49.      HHoossttnnaammee appeared in 4.2 BSD.
  50.  
  51. 4.2 Berkeley Distribution      December 30, 1993                             1
  52.